package com.jxd.project.travel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxd.project.travel.dao.IPictureDao;
import com.jxd.project.travel.model.Picture;
import com.jxd.project.travel.service.IPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName PictureServiceImpl
 * @Description TODO
 * @Author 邢子剑
 * @Date 2025/10/7 上午10:29
 * @Version 1.0
 */
@Service
public class PictureServiceImpl extends ServiceImpl<IPictureDao, Picture> implements IPictureService {
    @Autowired
    private IPictureDao pictureDao;

    @Override
    public boolean addPicture(Picture picture) {
        return pictureDao.insert(picture) > 0;
    }
}
